package com.lin.mapper;

import com.lin.pojo.Shopping;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ShoppingMapper {

    public Integer SelectExit_ByName(String username,String dish);

    public Integer SelectCount_ByDish(String username,String dish);
    public List<Shopping> SelectPage_ByName(Integer pageNum,Integer pageSize,String username,String dish);

    public Integer Select_TotalPrice(String username);
    public Integer Insert(String username,String dish,Integer price,Integer count);
    public Integer Delete(String username,String dish);

    public Integer Delete_All(String username);
    public Integer UpdateCount(Integer count,String username,String dish);
}
